package com.yihu.cms.service;

import java.io.IOException;

import com.yihu.article.beans.ArticleContent;
import com.yihu.article.beans.EditorManagerPage;
import com.yihu.beans.Poster;
import com.yihu.beans.PosterQuery;
import com.yihu.dataService.hessian.mongodb.interfaceService.ArticleHService;
import com.yihu.dataService.hessian.mongodb.interfaceService.PosterHService;
import com.yihu.dataService.hessian.resource.ResourceMongoDBManager;


public class PosterService{
	PosterHService posterService = null;
	public PosterService(){
		try {
			posterService= (PosterHService)ResourceMongoDBManager
					.getSingleton().getBeans("posterServiceHSC");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public Object addPoster(Poster poster){
		return posterService.addPoster(poster);
	}
	public Object delPoster(String id){
		return posterService.delPoster(id);
	}
	public Object updatePoster(Poster poster){
		return posterService.updatePoster(poster);
	}
	public Object findPoster(Poster p){
		return posterService.findPoster(p);
	}
	public Object getPosters(PosterQuery query){
		return posterService.getPosters(query);
	}
}
